package com.itheima.train.common.domain;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Liang
 */
@Data
@NoArgsConstructor
public class Log implements Serializable {

    private Long id;
    //("操作用户")
    private String username;
    //("描述")
    private String description;
    //("方法名")
    private String method;
    //("参数")
    private String params;
    //("返回")
    private String result;
    //("日志类型")
    private String logType;
    //("请求ip")
    private String requestIp;
    //("地址")
    private String address;
    //("浏览器")
    private String browser;
    //("请求耗时")
    private Long time;
    //("异常详细")
    private String exceptionDetail;
    //("创建日期")
    private Date createTime;
    //("请求方式")
    private String requestMode;
    //("请求路径")
    private String uri;
    //("内网IP")
    private String localIp;

    public Log(String logType, Long time) {
        this.logType = logType;
        this.time = time;
    }
}
